package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallIntegrationOrderDetailsDO;
import com.starlink.model.request.MallIntegrationOrderDetailsRequest;
import com.starlink.model.vo.MallIntegrationOrderDetailsVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallIntegrationOrderDetailsDtoMapper {

    MallIntegrationOrderDetailsDtoMapper INSTANCE = Mappers.getMapper(MallIntegrationOrderDetailsDtoMapper.class);

    /**
    * DO to VO
    * @param mallIntegrationOrderDetailsDO
    * @return
    */
    MallIntegrationOrderDetailsVO do2VO(MallIntegrationOrderDetailsDO mallIntegrationOrderDetailsDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallIntegrationOrderDetailsDO request2DO(MallIntegrationOrderDetailsRequest request);
}
